package club.zhcs.capture.bean.auth;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;
import static org.nutz.lang.Times.*;

import com.dgj.utils.db.data.Entity;

/**
 * 用户角色关系
 * 
 * @author wkipy
 *
 */
@Table("gj_user_role")
@Comment("用户角色关系表")
public class UserRole extends Entity {

	@Column("u_id")
	@Comment("用户id")
	private int userId;

	@Column("r_id")
	@Comment("角色id")
	private int roleId;

	@Column("ur_power_time")
	@Comment("授权时间")
	private Date powerTime = now();

	public Date getPowerTime() {
		return powerTime;
	}

	public void setPowerTime(Date powerTime) {
		this.powerTime = powerTime;
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the roleId
	 */
	public int getRoleId() {
		return roleId;
	}

	/**
	 * @param roleId
	 *            the roleId to set
	 */
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

}
